package cn.ssms.util;

import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

/**
 * 获取参数类
 * @author linjun
 *
 */

public class GetRequestParam {
	
	public static Map<String,Object> setMap(HttpServletRequest request){
		Map<String ,Object > parm = new HashMap<String, Object>();
		Enumeration<?> enu=request.getParameterNames();  
		while(enu.hasMoreElements()){
			Object val = "";
			String paraName=(String)enu.nextElement();
			val = request.getParameter(paraName) ==null ? "" :request.getParameter(paraName);
			parm.put(paraName, val);
		} 
		return parm;
	}
	
}
